package threadTest;

class myThread1 implements Runnable{

    @Override
    public void run() {
        for(int i=0;i<100;i++){
            System.out.println("myThread1 "+i);
        }
    }
}

class myThread2 extends Thread{
    public void run() {
        for(int i=0;i<100;i++){
            System.out.println("myThread2 "+i);
        }
    }
}

public class Main {
    public static void main(String[] args){
        myThread2 myThread1=new myThread2();
        Thread myThread2=new myThread2();
        myThread1.start();
        myThread2.start();
    }
}
